package sqlserver.to.mysql.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import sqlserver.to.mysql.service.HwmDataTransitionService;

@Controller
@RequestMapping("/dataTransition")
@Slf4j
@Api(description = "数据转换controller")
public class DataTransitionController {

    @Autowired
    private HwmDataTransitionService hwmDataTransitionService;

    @ApiOperation("服务员转换")
    @ResponseBody
    @PostMapping("/staffToMysql")
    public String staffToMysql() {

        hwmDataTransitionService.staffDataTransition();

        return "成功";
    }

}
